package com.xiaomengkuan.product.service;

import com.xiaomengkuan.common.entity.vo.PageVo;
import com.xiaomengkuan.common.util.R;
import com.xiaomengkuan.product.entity.pojo.Story;
import com.xiaomengkuan.product.entity.vo.ProductDetailResponseVo;
import com.xiaomengkuan.product.entity.vo.ProductResponseVo;

import java.util.List;
import java.util.Map;

/**
 * @author Faraj Mujey
 * -- Creation Time: 2021-01-26 7:03 下午, File Encoding: utf8 --
 */
public interface ProductService {
    ProductDetailResponseVo getDetailById(Map<String, Object> id);

    List<ProductResponseVo> getListByTag(String id, int page);

    boolean isExist(String id);

    PageVo<ProductResponseVo> getIndex(Map<String, Object> requestBody);

    PageVo<ProductResponseVo> getAll_Admin(Map<String, Object> requestBody);

    R insert(Map<String, Object> requestBody);

    List<Story> getStories(String productId, Map<String, Object> requestBody);

    R getStory(String id);

    R saveStory(Map<String, Object> requestBody);

    R createStory(Map<String, Object> requestBody);

    R deleteStory(String id);

    R pictures(String id);

    R savePicture(Map<String, Object> requestBody);

    R deletePicture(String id);

    R getInfo(String id);

    R saveInfo(Map<String, Object> requestBody);

    R removeProduct(String id);
}
